package com.yami.shop.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yami.shop.bean.app.dto.ProductDto;
import com.yami.shop.bean.model.BalanceLog;
import com.yami.shop.dao.BalanceLogMapper;
import com.yami.shop.dao.ProductMapper;
import com.yami.shop.service.BalanceLogService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author jjh
 * @since 2023-10-06
 */
@Service
public class BalanceLogServiceImpl extends ServiceImpl<BalanceLogMapper, BalanceLog> implements BalanceLogService {
    @Autowired
    private BalanceLogMapper balanceLogMapper;

    @Override
    public IPage<BalanceLog> pageByBalanceLog(IPage<BalanceLog> page,String userId){
        return  balanceLogMapper.pageByBalanceLog(page,userId);
    }
    public List<BalanceLog> getBalanceLog(String userId){
        return balanceLogMapper.getBalanceLog(userId);
    }
}
